package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;
import com.dhcc.core.modules.system.entity.Dept;


/**
 * 院区
 * 
 * @ClassName: CdcHospitalEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:07
 */
@TableName("t_cdc_ct_hospital") 
public class CdcHospitalEntity extends DataEntity<CdcHospitalEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//索引码
	private String xcode;	
	//代码
	private String code;	
	//描述
	private String description;	
	//别名
	private String description2;
    //系统组织
	private Long sysOrgId;
    @TableField(exist = false)
    private Dept sysOrg;

	public Dept getSysOrg() {
        return sysOrg;
    }
    public void setSysOrg(Dept sysOrg) {
        this.sysOrg = sysOrg;
    }
    public Long getSysOrgId() {
        return sysOrgId;
    }
    public void setSysOrgId(Long sysOrgId) {
        this.sysOrgId = sysOrgId;
    }
    //业务数据类型
	private Long dataId;
    @TableField(exist = false)
    private CdcDataEntity data;	
	public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    //是否有效
	private Integer isActive;	

	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：别名
	 */
	public void setDescription2(String description2) {
		this.description2 = description2;
	}
	/**
	 * 获取：别名
	 */
	public String getDescription2() {
		return description2;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
